package com.bed.lovewithpatientbed.common.token;

import com.bed.lovewithpatientbed.common.LoginSubjectType;
import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * @author xuxiaoding
 * @version 1.0.0
 * @ClassName CustomUsernamePasswordToken.java
 * @Description 自定义UsernamePasswordToken，用于区分登录主体类型
 */
public class CustomUsernamePasswordToken extends UsernamePasswordToken {

    private LoginSubjectType loginSubjectType;

    public CustomUsernamePasswordToken() {}

    public CustomUsernamePasswordToken(String username, String password, LoginSubjectType loginSubjectType) {
        super(username, password);
        this.loginSubjectType = loginSubjectType;
    }

    public LoginSubjectType getLoginSubjectType() {
        return loginSubjectType;
    }
}
